from selenium import webdriver

def initDriver(brower="chrome",timeout=30):
    driver=None
    if brower=="chrome":
        driver = webdriver.Chrome()
    elif brower=="firfox":
        driver=webdriver.Firefox()
    elif brower=="ie":
        driver=webdriver.Ie()

    driver.maximize_window()  # 最大化浏览器
    driver.implicitly_wait(timeout)
    return driver